package com.yan.service.impl;

import com.yan.beans.User;
import com.yan.mapper.UserMapper;
import com.yan.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2019/12/25 0025.
 */
@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserMapper userMapper;
    @Override
    public boolean login(User user) {
        Integer login = userMapper.login(user);
        if(login>0){
            return true;
        }
        return false;
    }
}
